/**
 * Created by jiachneyu on 2018/3/21.
 */
const monk = require('monk');
const config = require('./config/config');

const url = config.mongodb;
console.log(url)
const db = monk(url, {
    poolSize: 7,
    keepAlive: 300000,
});

db.then(()=>{
    console.log("Connected correctly to server");
})

module.exports = db;